#ifndef __MYADC_H__
#define __MYADC_H__

#include "main.h"
#include "stm32f1xx_hal_adc.h"

void ADC_Init(void);
extern uint32_t adc_values[4]; 
extern float OUT_current;  // 电流
extern float INT_current;   // 输入电流
extern float solar_panel_voltage; // 光伏板输入电压
extern float battery_voltage;// 电池电压
void Read_ADC_Values(void);
uint32_t ADC_Get_Average(uint8_t ch,uint8_t times);
void setAadValue(void);
void AdcDataConversion(void);
#endif
